/*
 * @Date: 2022-02-14 10:59:17
 * @LastEditors: 春贰
 * @Desc:
 * @LastEditTime: 2022-03-02 17:56:37
 * @FilePath: \gin-antd\server\app\router\base.go
 */
package router

import (
	"go2admin_pure/system/controller/base"
	"go2admin_pure/system/middleware"
	"github.com/gin-gonic/gin"
)

func BaseRouter(r *gin.Engine) {
	authG := r.Group("base")
	authG.Use(middleware.JwtMid())
	{
		authG.POST("/login2", base.Login2)
	}

	authGno := r.Group("base")

	authGno.POST("/login", base.Login)

}
